#
# Makefile for config
#

CROSS	=
CC	= gcc
CFLAGS	= -Wall -O3 -c

INCLUDE	= -I ./include
SRC	= ./src

SOURCES	= $(wildcard $(SRC)/*.c)
OBJECTS	= $(SOURCES:.c=.o)
OUT	= config

all:$(OUT)
	@echo BUILD DONE!

$(OUT):$(OBJECTS)
	$(CROSS)$(CC) -o $(OUT) $(OBJECTS)

%.o:%.c
	$(CROSS)$(CC) -o $@ $^ $(CFLAGS) $(INCLUDE) 

.PHONY:clean
clean:
	-rm -rf $(OBJECTS) $(OUT)
